<!doctype html>
<html ng-app="test">

<head>
    <meta charset="utf-8">
    <title>controller——控制器,对象</title>
    <style>

    </style>
    <script src="angular.js"></script>
    <script>
    var app = angular.module('test', []);

    app.controller('aaa', function($scope) {
        $scope.arr = [{
            name: 'blue',
            age: 18
        }, {
            name: '老肖',
            age: 16
        }, {
            name: '张三',
            age: 25
        }, {
            name: '张三',
            age: 25
        }];
    });
    </script>
</head>

<body ng-controller="aaa">
    <ul>
        <li ng-repeat="item in arr">我叫{{item.name}}，今年{{item.age}}</li>
    </ul>
</body>

</html>
